#Author: Tanyong
# *-* coding:utf8 *-*
# @time       : 18-7-17 下午3:53
# @Author     : Tanyong
# @Site       : 
# @File       : views.py
# @Software   : PyCharm
from flask import current_app
from flask import redirect
from flask import render_template
from flask import url_for

from . import index_blu


@index_blu.route('/')
def index():
    return render_template('news/index.html')

@index_blu.route('/favicon.ico')
def favicon():
    return current_app.send_static_file('news/favicon.ico')
    # return redirect(url_for("static/news/favicon.ico"))